package com.zhou.bpm.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: zhoujinchuan
 * @Description: TODO（请添加描述）
 * @CreateTime: 2023/10/27 14:02
 */
@Data
public class WorkspaceVo <T> implements Serializable {

    @ApiModelProperty("任务ID" )
    private String taskId;

    @ApiModelProperty("流程实例id" )
    private Integer instanceId;

    @ApiModelProperty("流程编码" )
    private String processCode;

    @ApiModelProperty("流程名称" )
    private String processName;

    @ApiModelProperty("流程当前节点编码")
    private String currentNodeCode;

    @ApiModelProperty("流程当前节点名称")
    private String currentNodeName;

    @ApiModelProperty("申请人账号")
    private String applier;

    @ApiModelProperty("申请人姓名")
    private String applierName;

    @ApiModelProperty("流程状态(1-申请人发起,2-审批中,3-已完成,4-已测回,5-已作废)")
    private Integer status;

    @ApiModelProperty("流程状态(1-申请人发起,2-审批中,3-已完成,4-已测回,5-已作废)")
    private String statusStr;

    @ApiModelProperty("流程发起时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date processCreateTime;

    @ApiModelProperty("任务生成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date taskCreateTime;

    @ApiModelProperty("用户审批时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date userApproveTime;

    @ApiModelProperty("审批建议")
    private String userOpinion;

    @ApiModelProperty("流程业务数据")
    private T processData;

}
